/*
 * @Author: hcluo
 * @Date: 2020-04-26 16:41:51
 * @LastEditors: hcluo
 * @LastEditTime: 2020-04-26 16:43:39
 * @Description: 政府项目
 */
function createCode(len) {
    len = len || 32;
    var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678';    /****默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1****/
    var maxPos = $chars.length;
    var pwd = '';
    for (let i = 0; i < len; i++) {
        pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
    }
    return pwd + new Date().getTime();
}
for (let index = 0; index < 5; index++) {
    console.log(createCode(8))
}
for (let index = 0; index < 5; index++) {
    var $chars = 'ABCDEFGHJKMNPQRSTWXYZ';    /****默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1****/
    var maxPos = $chars.length;
    var pwd = '';
    for (let i = 0; i < 8; i++) {
        pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
    }
    console.log(pwd)
}
